import { ClusterHealth, Overview } from "$/elasticsearch-client";
import { useRequire } from "@/api/instance";

export const clientInstanceClusterHealthApi = (id: string) => {
  return useRequire<ClusterHealth>("/api/client/instance/cluster_health", { id });
};

export const clientInstanceGetStateApi = (id: string, url: string) => {
  return useRequire<string>("/api/client/instance/get_state", { id, url });
};

export const clientInstanceInfoApi = (id: string) => {
  return useRequire<Overview>("/api/client/instance/info", { id });
};
